package com.alibaba.nacos.api.naming.remote.response;

import com.alibaba.nacos.api.naming.pojo.ServiceInfo;
import com.alibaba.nacos.api.remote.response.Response;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
public class SubscribeServiceResponse
        extends Response {

    private ServiceInfo serviceInfo;

    public SubscribeServiceResponse(int resultCode,
                                    String message,
                                    ServiceInfo serviceInfo) {
        super();
        setResultCode(resultCode);
        setMessage(message);
        this.serviceInfo = serviceInfo;
    }
}
